<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 
 /**
 * Arbou CMS System
 *
 * 控制台控制器
 * 
 * 控制用户登陆和登出，以及一个简单的权限控制ACL实现
 *
 * @subpackage	Controller
 * @category	Admin Controller 
 *
 * @package		Arbou Cms
 * @author		Arbou <arbou.guo@qq.com>
 * @copyright	Copyright (c) 2010 - 2011, arbou.com.
 * @link		http://www.arbou.cn
 * @version		$versionid
 */
class Dashboard extends Arbou_Auth_Controller {
	
	/**
     * 传递到对应视图的数据
     *
     * @access private
     * @var array
     */
	private $_data = array();

	 /**
     * 构造函数
     * 
     * @access public
     * @return void
     */
	public function __construct()
	{
		parent::__construct();
		
		/** 页面导航栏和标题 */
		$this->_data['page_title'] = '网站概要';
		$this->_data['parentPage'] = 'dashboard';
		$this->_data['currentPage'] = 'dashboard';
	}
	
	 /**
     * 默认执行函数
     * 
     * @access public
     * @return void
     */
	public function index()
	{
		/** 权限确认 */
		
		$user = unserialize($this->session->userdata('user'));
		
		$this->_data['user_name'] = $user['name'];
		
		$this->load->view('admin/admin-index',$this->_data);
	}
}

/* End of file dashboard.php */
/* Location: ./application/controllers/admin/dashboard.php */